import request from '@/utils/request'

// 当前瞬时量
export function getCurrentFlow(deviceId) {
    return request({
        url: '/coal/realtimeData/currentFlow/' + deviceId,
        method: 'get',
    })
}


// 当前班次设备折线图统计数据
export function getBrokenLineData(deviceId) {
    return request({
        url: '/coal/realtimeData/brokenLineData/' + deviceId,
        method: 'get',
    })
}

// 查询瞬时量，下发命令
export function flowCommand(deviceId) {
    return request({
        url: '/coal/realtimeData/flowCommand/' + deviceId,
        method: 'get',
    })
}

// 查询平均厚度
export function averageThickness(deviceId) {
    return request({
        url: '/coal/realtimeData/averageThickness/' + deviceId,
        method: 'get',
    })
}

// 查询煤流当前截面图
export function sectionData(deviceId) {
    return request({
        url: '/coal/realtimeData/section/' + deviceId,
        method: 'get',
    })
}

// 查询30分钟煤流厚度趋势数据
export function trendData(deviceId) {
    return request({
        url: '/coal/realtimeData/trend/' + deviceId,
        method: 'get',
    })
}


// 查询30分钟筛机截图分类占比
export function proportionData(deviceId) {
    return request({
        url: '/coal/realtimeData/clasProportion/' + deviceId,
        method: 'get',
    })
}
